<?php

namespace App\Base\Annotation;

use Doctrine\Common\Annotations\Annotation;
use Doctrine\Common\Annotations\Annotation\Enum;

/**
 * @Annotation
 */
class Common implements \Doctrine\ORM\Mapping\Annotation
{
    public $cnName = "";//字段中文名

    /**
     * @var string
     * @Enum({"time","date","datetime","text","select","entity","pic","pics","art","switch","arrayText","radio","textarea","file"})
     */
    public $editType = "";//编辑类型
    /**
     * @var string
     * @Enum({"pic","text","textarea","switch"})
     */
    public $listType = "";//列表显示名称
    public $width = "100";//列表显示名称


    public function setName($name)
    {
        $this->cnName = $name;
        return $this;
    }

    public function setWidth($width)
    {
        $this->width = $width;
        return $this;
    }

    public function setEditType($type)
    {
        $this->editType = $type;
        return $this;
    }

    public function setListType($type)
    {
        $this->listType = $type;
        return $this;
    }
}
